package com.example.leetcode.array;

import com.example.leetcode.math.common.MathUtils;

import java.util.Arrays;

class Solution6390 {
    public int[] getSubarrayBeauty(int[] nums, int k, int x) {
//        return MathUtils.getSubarrayBeauty(nums, k, x);
        return MathUtils.getSubarrayBeauty1(nums, k, x);
    }
}

public class leetcode6390 {
    public static void main(String[] args) {
        Solution6390 solution6390 = new Solution6390();
        int[] nums = {1, -1, -3, -2, 3};
        int k = 3;
        int x = 2;
        int[] nums1 = {-1, -2, -3, -4, -5};
        int k1 = 2;
        int x1 = 2;
        int[] nums3 = {-3, 1, 2, -3, 0, -3};
        int k3 = 2;
        int x3 = 1;
        System.out.println(Arrays.toString(solution6390.getSubarrayBeauty(nums, k, x)));
        System.out.println(Arrays.toString(solution6390.getSubarrayBeauty(nums1, k1, x1)));
        System.out.println(Arrays.toString(solution6390.getSubarrayBeauty(nums3, k3, x3)));
    }
}
